﻿window.onload=function(){
	  var User_01 = Vue.extend({
		template: ' <div class="select">\
						<p @click="hit()" v-text="txt">请选择：</p>\
						<ul v-show="a">\
							<li v-for="val in arr" @click="choose(val)">{{val}}</li>\
						</ul>\
					</div>'
	});
	var user_01 = new User_01({
		data: {
			a:false,
			txt:"请选择：",
			arr:["a","b","c"]
		},
		methods:{
			hit:function(){
				this.a = true;
			},
			choose:function(val){
				this.txt = val;
				this.a = false;
			}
		}
	});
	user_01.arr = [1,2,3,4,5];
	user_01.$mount('#user_name_01') 
}